{layout name="../common/master"/}
<div id="right">
	<form action="" method="get" role="form" >
		<div class="form-group">
			<label style="float: left;margin-right: 5px;padding-top: 8px" for="" >用户名</label>
			<input style="width: 200px;float: left;margin-right: 20px" type="text" class="form-control" value="{:isset($_GET['name'])?$_GET['name']:''}" name="name" id="" placeholder="请输入用户姓名">
			<button style="float: left;" type="submit" class="btn btn-primary">搜索</button>
			<a style="float: left;" href="{:URL('home/Systemmanage/addNewUser')}" class="btn btn-success">添加新用户</a>
		</div>
	</form>
	<p style="width: 100%;height: 10px;clear: both"></p>
	<table class="table table-bordered table-hover">
		<thead>
			<tr>
				<th>ID</th>
				<th>账号</th>
				<th>类型</th>
				<!--<th>角色</th>-->
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		{foreach name="list" item="vo" key="k" }
			<tr>
				<td>{$vo['id']}</td>
				<td>{$vo['name']}</td>
				<td>{$vo['type']}</td>
				<!--<td>{$vo['role']}</td>-->
				<td>
					<div class="btn-group">
						<a href="{:URL('home/Systemmanage/setrole',['id'=>$vo['id']])}" class="btn btn-primary">设置角色</a>
					</div></td>
			</tr>
		{/foreach}
		</tbody>
	</table>
	{if condition="isset($page)"}
      {$page}
	{/if}




</div>
